package com.gxm.jar.random;

import org.apache.commons.lang3.RandomUtils;
import org.junit.Test;

/**
 * @author 郭训民
 * @description: TODO
 * @title: Demo1
 * @projectName jsee
 * @date 2021/7/9 11:06
 */
public class Demo1 {

    @Test
    public void test01(){
        int mzl = 0;
        for (int i = 0; i < 10000; i++) {
            int randomInt = RandomUtils.nextInt(1,101);
            if (randomInt <= 30) {
                mzl ++;
            }
        }
        System.out.println(mzl);
    }


}
